<?php

class PostgreSQL extends SGBD {
   
    private $port;
    
    public function getDNS() {
        $dns = "pgsql:host=" . $this->getPrepare()->getHost();
        if(isset($this->getPort()))
            $dns .= " port=" . $this->getPort();
        $dns .= " dbname=" . $this->getPrepare()->getDBName();
        return $dns;
    }
    
    public function getPort(){
        return $this->port;
    }
    public function setPort($port){
        $this->port = $port;
    }
    
}

?>
